

#ifndef __NEW_FILE_DIALOG_H__
#define __NEW_FILE_DIALOG_H__


#include "GameEditor.h"
#include <QtWidgets/QtWidgets>
#include "ui_NewFileDialog.h"

class NewFileDialog
	: public QDialog
	, public Ui::NewFileDialog
{
	Q_OBJECT

public:
	NewFileDialog(const QString &projPath, QWidget *parent = 0, Qt::WindowFlags flags = Qt::Tool);
	virtual ~NewFileDialog();

    uint fileType() const
	{
		return mFileType;
	}

	const QString &fileName() const
	{
		return mFileName;
	}

	const QString &filePath() const
	{
		return mFilePath;
	}

public slots:
	void onBtnBrowse();
	void onListCurrentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);

protected:
	void initListItems();

	virtual void accept();

private:
    uint     	mFileType;
	QString		mFileName;
	QString		mFilePath;
	QString		mProjPath;
	bool		mProjectOpened;
};


#endif	/*__NEW_FILE_DIALOG_H__*/
